home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / misc / medical / mendelge.cpt / MendelGenetics / MENDELIAN GENETICS I / card_100811.txt < prev    next >
Text File  |  1989-06-13  |  5KB  |  216 lines

  1. -- card: 100811 from stack: in
  2. -- bmap block id: 101298
  3. -- flags: 0000
  4. -- background id: 2665
  5. -- name: 
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 00
  10. -- high flags: 0002
  11. -- rect: left=274 top=124 right=150 bottom=341
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 128
  16. -- text size: 10
  17. -- style flags: 0
  18. -- line height: 13
  19. -- part name: f1
  20.  
  21.  
  22. -- part 2 (button)
  23. -- low flags: 00
  24. -- high flags: 8003
  25. -- rect: left=351 top=126 right=148 bottom=451
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 0 / 0
  28. -- text alignment: 1
  29. -- font id: 0
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: ENTER DATA
  34. ----- HyperTalk script -----
  35. on mouseUp
  36.   global sum
  37.   global sumsq
  38.   global en
  39.   add the value of card field f1 to sum
  40.   add the value of ((card field f1)^2) to sumsq
  41.   add 1 to en
  42.   delete line 1 of card field f1
  43.   get the location of card field f1
  44.   click at it
  45. end mouseUp
  46.  
  47.  
  48.  
  49.  
  50. -- part 3 (button)
  51. -- low flags: 00
  52. -- high flags: 8003
  53. -- rect: left=326 top=173 right=195 bottom=426
  54. -- title width / last selected line: 0
  55. -- icon id / first selected line: 0 / 0
  56. -- text alignment: 1
  57. -- font id: 0
  58. -- text size: 12
  59. -- style flags: 0
  60. -- line height: 16
  61. -- part name: CALCULATE
  62. ----- HyperTalk script -----
  63. on mouseUp
  64.   set numberFormat to "000.00"
  65.   global sum
  66.   global sumsq
  67.   global en
  68.   global var
  69.   put the value of (((en * sumsq) - (sum^2)) / ( en * ( en - 1 ))) into var
  70.   put sqrt(var) into card field f3
  71.   put the value of (sum / en) into card field f2
  72.   put the value of ((1.96 * (card field f3)) + card field f2) into card field f4
  73.   put the value of ((card field f2 - (1.96 * (card field f3))))into card field f5
  74. end mouseUp
  75.  
  76.  
  77.  
  78. -- part 4 (field)
  79. -- low flags: 00
  80. -- high flags: 0002
  81. -- rect: left=277 top=204 right=230 bottom=344
  82. -- title width / last selected line: 0
  83. -- icon id / first selected line: 0 / 0
  84. -- text alignment: 0
  85. -- font id: 128
  86. -- text size: 10
  87. -- style flags: 0
  88. -- line height: 13
  89. -- part name: F2
  90.  
  91.  
  92. -- part 5 (field)
  93. -- low flags: 00
  94. -- high flags: 0002
  95. -- rect: left=278 top=238 right=264 bottom=345
  96. -- title width / last selected line: 0
  97. -- icon id / first selected line: 0 / 0
  98. -- text alignment: 0
  99. -- font id: 128
  100. -- text size: 10
  101. -- style flags: 0
  102. -- line height: 13
  103. -- part name: F3
  104.  
  105.  
  106. -- part 6 (button)
  107. -- low flags: 00
  108. -- high flags: 8003
  109. -- rect: left=272 top=58 right=80 bottom=372
  110. -- title width / last selected line: 0
  111. -- icon id / first selected line: 0 / 0
  112. -- text alignment: 1
  113. -- font id: 0
  114. -- text size: 12
  115. -- style flags: 0
  116. -- line height: 16
  117. -- part name: RESET
  118. ----- HyperTalk script -----
  119. on mouseUp
  120.   global var
  121.   global sum
  122.   global sumsq
  123.   global en
  124.   put 0 into var
  125.   put 0 into sum
  126.   put 0 into sumsq
  127.   put 0 into en
  128.   delete line 1 of card field f1
  129.   delete line 1 of card field f2
  130.   delete line 1 of card field f3
  131.   delete line 1 of card field f4
  132.   delete line 1 of card field f5
  133.   get the location of card field f1
  134.   click at it
  135. end mouseUp
  136.  
  137.  
  138.  
  139. -- part 7 (field)
  140. -- low flags: 00
  141. -- high flags: 0002
  142. -- rect: left=278 top=269 right=294 bottom=345
  143. -- title width / last selected line: 0
  144. -- icon id / first selected line: 0 / 0
  145. -- text alignment: 0
  146. -- font id: 3
  147. -- text size: 12
  148. -- style flags: 0
  149. -- line height: 16
  150. -- part name: f4
  151.  
  152.  
  153. -- part 8 (field)
  154. -- low flags: 00
  155. -- high flags: 0002
  156. -- rect: left=279 top=303 right=329 bottom=346
  157. -- title width / last selected line: 0
  158. -- icon id / first selected line: 0 / 0
  159. -- text alignment: 0
  160. -- font id: 3
  161. -- text size: 12
  162. -- style flags: 0
  163. -- line height: 16
  164. -- part name: f5
  165.  
  166.  
  167. -- part 9 (button)
  168. -- low flags: 00
  169. -- high flags: 8003
  170. -- rect: left=154 top=316 right=338 bottom=254
  171. -- title width / last selected line: 0
  172. -- icon id / first selected line: 0 / 0
  173. -- text alignment: 1
  174. -- font id: 0
  175. -- text size: 12
  176. -- style flags: 0
  177. -- line height: 16
  178. -- part name: SUB HEADINGS
  179. ----- HyperTalk script -----
  180. on mouseUp
  181.   go to card id 63057
  182. end mouseUp
  183.  
  184.  
  185.  
  186.  
  187. -- part contents for background part 1
  188. ----- text -----
  189. STANDARD DEVIATION #2
  190.  
  191. -- part contents for background part 2
  192. ----- text -----
  193. This card takes a block of data and gives you the standard deviation of the curve it describes. In the section containing tables, several collections of data are listed along with instructions on how to copy it over to this card. Enter that data into the program at the right and hit the CALCULATE button when the final value is logged. You will be presented with the mean and standard deviation for that data spread. Note that the larger the standard deviation, the broader the data spread. The confidence limits extend through the data for two standard deviations on either side of the mean.In a normal distribution, the maximum and minimum values take in over 95% of the observed data in your spread. Scroll down to the point of data entry.
  194.  
  195.  
  196. <-Click here when pasting in the data table.
  197.  
  198. -- part contents for background part 8
  199. ----- text -----
  200. 45
  201.  
  202. -- part contents for card part 5
  203. ----- text -----
  204. 001.90
  205.  
  206. -- part contents for card part 4
  207. ----- text -----
  208. 002.30
  209.  
  210. -- part contents for card part 7
  211. ----- text -----
  212. 006.02
  213.  
  214. -- part contents for card part 8
  215. ----- text -----
  216. 0-1.42